import request from '@/utils/request'

export function captcha(random) {
  return request({
    url: '/api/auth/login/captcha/' + random,
    method: 'get',
  })
}

export function login(data) {
  return request({
    url: '/api/auth/login/wmsLogin',
    method: 'post',
    data
  })
}

export function getResource() {
  return request({
    url: '/api/auth/resource/getResource',
    method: 'get'
  })
}

export function refreshToken() {
  return request({
    url: '/api/auth/resource/refreshToken',
    method: 'get'
  })
}
